package com.ygbhu.design.prototype;

import java.util.Date;

/**
 * @program: design-pattern
 * @description:
 * @author: smzhu3
 * @create: 2021-07-08 17:26
 **/
public class Test {
    public static void main(String[] args) throws CloneNotSupportedException {
        Video video = new Video("测试",new Date());
        Video video1=(Video) video.clone();
        System.out.println(video);
        System.out.println(video1);
        System.out.println("========================");

        video.setCreateDate(new Date(12314141));
        System.out.println(video);
        System.out.println(video1);
    }
}
